<template>
  <table class="table table-bordered table-stripped">
    <!-- 表格标题区域 -->
    <thead>
      <tr>
        <slot name="header"></slot>
      </tr>
    </thead>
    <!-- 表格主体区域 -->
    <tbody>
      <tr v-for="item in list" :key="item.id" >
        <slot name="body" :row="item"></slot>
      </tr>
    </tbody>
  </table>
</template>

<script>
/* goods_name  goods_price  id  inputValue: ""  inputVisible: false  tags: Array(2)
0: "舒适"
1: "透气" */
export default {
  name: 'MyTable',
  props:{
      list:{
          type:Array,
          required:true
      }
  }
}
</script>


<style scoped lang="less">

</style>
